//
//  JKSuspensionView.h
//  JKFloatingBox
//
//  Created by 王冲 on 2019/9/18.
//  Copyright © 2019 王冲. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class JKSuspensionView;

@protocol JKSuspensionViewDelegate <NSObject>

/** 点击悬浮球的回调 */
- (void)suspensionViewClick:(JKSuspensionView *)suspensionView;

@end

@interface JKSuspensionView : UIView

/** 代理 */
@property (nonatomic, weak) id<JKSuspensionViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame color:(UIColor *)color withSpace:(CGFloat)space;

/** 显示 */
- (void)showSuspension;

/** 移除 */
- (void)removeSuspension;


@end

NS_ASSUME_NONNULL_END
